package com.just.fun.annotation;

public class AnnotationAttack {

    public static void main(String[] args) {
        Class<?> classType = Student.class;
        //默认有注解
        A1 a1=classType.getAnnotation(A1.class);
        Class<?> classType2 = Teacher.class;
        //默认有注解
        A1 a2=classType2.getAnnotation(A1.class);
        System.out.println(a1.type());
        System.out.println(a2.type());
        System.out.println("fuck singleton result:"+(a1==a2));

    }
}
